import { createRouter, createWebHistory } from 'vue-router'
import DashBoard from '../views/dashBoard'
const routes = [
  {
    path: '/',
    redirect: '/dashBoard'
  },
  {
    path: '/dashBoard',
    name: 'dashBoard',
    component: DashBoard
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
